<?php

namespace Template;

final class Adapter {

    /**
     * @param string $name
     */
    public function factory ($name) {
        if (!is_string($name)) {
            // throw new error
        }
//        if (preg_match('')) {
//        }
        return call_user_func(sprintf('\\Template\\Adapters\\%1$s\\CTransformer::getInstance'));
    }

}